import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const LMS: AppRouteRecordRaw = {
    path: '/Problems',
    name: 'Problems',
    component: DEFAULT_LAYOUT,
    meta: {
        locale: '设置',
        requiresAuth: true,
        icon: 'icon-dashboard',
        order: 4,
    },
    children: [
        {
            path: 'Collections',
            name: 'Collections',
            component: () => import('@/views/problems/collections/index.vue'),
            meta: {
                locale: '题集管理',
                requiresAuth: true,
                roles: ['*'],
            }
        },
        {
            path: 'Collections/Details',
            name: 'CollectionDetails',
            component: () => import('@/views/problems/collectionProblems/index.vue'),
            meta: {
                locale: '题集题目列表',
                requiresAuth: true,
                roles: ['*'],
            }
        },        
        // {
        //     path: 'Rules',
        //     name: 'Rules',
        //     component: () => import('@/views/problems/collections/index.vue'),
        //     meta: {
        //         locale: '规则管理',
        //         requiresAuth: true,
        //         roles: ['*'],
        //     }
        // },
        // {
        //     path: 'Sets',
        //     name: 'Sets',
        //     component: () => import('@/views/problems/collections/index.vue'),
        //     meta: {
        //         locale: '习题集管理',
        //         requiresAuth: true,
        //         roles: ['*'],
        //     }
        // },

    ]
};

export default LMS;
